home *** CD-ROM | disk | FTP | other *** search
- /*
- File: Color Search Procs.h
-
- Contains: This file defines a number of commonly used color search procs. For the encoder,
- we only use one of the procs, which returns white if the color of a pixel is within
- a certain delta of a key color, and returns black for all other cases. We can use
- this to quickly create masks of an image.
-
-
- Written by: Timothy Carroll
-
- Copyright: Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
-
- You may incorporate this Apple sample source code into your program(s) without
- restriction. This Apple sample source code has been provided "AS IS" and the
- responsibility for its operation is yours. You are not permitted to redistribute
- this Apple sample source code as "Apple sample source code" after having made
- changes. If you're going to re-distribute the source, we require that you make
- it clear in the source that the code was descended from Apple sample source
- code, but that you've made changes.
-
- Change History (most recent first):
- 7/1/1999 Karl Groethe Updated for Metrowerks Codewarror Pro 2.1
- 2/24/97 Timothy Carroll Now explicitly include Main.h
- 8/15/96 Timothy Carroll Initial Release
-
-
-
- */
-
- #ifndef _COLORSEARCHPROC_
- #define _COLORSEARCHPROC_
-
- #pragma once
-
- #include "Main.h"
- #include <QuickDraw.h>
- // We included main to get our black and white color constants. If you don't have main.h,
- // uncomment these two lines and remove the include.
-
- //const RGBColor kWhite = {0xFFFF, 0xFFFF, 0xFFFF};
- //const RGBColor kBlack = {0x0000, 0x0000, 0x0000};
-
- extern ColorSearchUPP MaskSearchProcUPP;
- extern ColorSearchUPP LightenSearchProcUPP;
- extern ColorSearchUPP DarkenSearchProcUPP;
-
- extern RGBColor gMaskColor;
- extern SInt32 gSearchDelta;
-
-
- #endif // _COLORSEARCHPROC_
-
-